//
//  SMIDAuthenticationView.swift
//  SomePasti
//
//  Created by 李永彬 on 2025/10/17.
//

import SwiftUI

struct SMIDAuthenticationView: View, TitledView {
    var navigationTitle: String = "Identity information"
    
    
    @Environment(\.navigationManager) var navManager
    
    var body: some View {
        let navigationConfig = NavigationConfig(
            title: navigationTitle,
            showSystemBackButton: false
        )
        SMAuthenBaseView(navigationConfig: navigationConfig) {
            Button("push bank view") {
                navManager.wrappedValue.pushTitleView(tag: mainNav) {
                    SMBankView()
                }
                
            }
            .padding()
            .background(Color.orange)
            .foregroundColor(.white)
            .cornerRadius(8)
        }
    }
}

#Preview {
    SMIDAuthenticationView()
}
